package com.lbh.platforms.windows.structures.user;

import com.sun.jna.Pointer;
import com.sun.jna.PointerType;
import com.sun.jna.Structure;

import java.util.Arrays;
import java.util.List;

/***
 * project:JRuntime
 * package:com.lbh.platforms.windows.structures.user
 *
 * @author user:lenovo QQ:1601078366
 * @date 2021/10/18 22:43
 * @version V1.0
 */
@SuppressWarnings({"AlibabaCommentsMustBeJavadocFormat", "unused", "SpellCheckingInspection", "AlibabaClassNamingShouldBeCamel"})
public class MSG extends Structure {
    public Pointer hwnd;
    public int message;
    public int wParam;
    public Pointer lParam;
    public int time;
    //public POINT.ByValue pt;
    public long x, y;

    @Override
    protected List<String> getFieldOrder() {
        return Arrays.asList("hwnd", "message", "wParam", "lParam", "time", "x", "y");
    }
}
